\hypertarget{class_animation}{
\section{Animation Class Reference}
\label{class_animation}\index{Animation@{Animation}}
}


Représente une animation décomposé en plusieurs textures.  




{\ttfamily \#include $<$animation.h$>$}

Inheritance diagram for Animation:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_animation}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_animation_ae434fe1360907489ad1b4f586cdf5ff2}{Animation} (std::vector$<$ \hyperlink{class_texture}{Texture} $\ast$ $>$, int nStep)
\item 
void \hyperlink{class_animation_aef4821c5eea9d55a0dd5e5a318891627}{Use} ()
\item 
\hyperlink{class_animation_abea4592acfb670e821d24ddcf2dd3593}{Animation} (int aTime, int \hyperlink{class_animation_a99961ee0ef7a9aec39aabd83c351bf22}{interval}, int aNbStep)
\item 
virtual void \hyperlink{class_animation_a9365f435aa9928523d554049683f5e98}{Use} ()=0
\item 
virtual void \hyperlink{class_animation_ae25a3ab12b719d73aced1e5e0d0112fa}{NextStep} ()=0
\item 
virtual void \hyperlink{class_animation_a47d7e57125592e41adc24f1301adcb9d}{CheckTime} (int currentTime)=0
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
std::vector$<$ \hyperlink{class_texture}{Texture} $\ast$ $>$ \hyperlink{class_animation_a61b9ead944801e1ee3a11eddcf799d20}{textures}
\item 
int \hyperlink{class_animation_a46bcead8041d18d154c6caf634da0e53}{stepLength}
\item 
int \hyperlink{class_animation_a5802e6215a1da69034bc349c14b09ea8}{currentStep}
\item 
int \hyperlink{class_animation_aa22549a55f3b2335ff206a85e22d7098}{stepCount}
\item 
int \hyperlink{class_animation_a7ea398809a1e88f76591c117ac155eec}{nbStep}
\item 
int \hyperlink{class_animation_a99961ee0ef7a9aec39aabd83c351bf22}{interval}
\item 
int \hyperlink{class_animation_ad0ea719123939b31c1b8c46c9033cd64}{time}
\item 
int \hyperlink{class_animation_a20800650e6f0050c7cdeb97fa662ec10}{pause}
\item 
int \hyperlink{class_animation_aebefbea7f829a8880e7749f9d9b83954}{sens}
\item 
GLuint \hyperlink{class_animation_a4c71d66784835bffc059ee0be5c88ed3}{textureIndexBuffer}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Représente une animation décomposé en plusieurs textures. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_animation_ae434fe1360907489ad1b4f586cdf5ff2}{
\index{Animation@{Animation}!Animation@{Animation}}
\index{Animation@{Animation}!Animation@{Animation}}
\subsubsection[{Animation}]{\setlength{\rightskip}{0pt plus 5cm}Animation::Animation (
\begin{DoxyParamCaption}
\item[{std::vector$<$ {\bf Texture} $\ast$ $>$}]{aTextures, }
\item[{int}]{nStep}
\end{DoxyParamCaption}
)}}
\label{class_animation_ae434fe1360907489ad1b4f586cdf5ff2}
\hypertarget{class_animation_abea4592acfb670e821d24ddcf2dd3593}{
\index{Animation@{Animation}!Animation@{Animation}}
\index{Animation@{Animation}!Animation@{Animation}}
\subsubsection[{Animation}]{\setlength{\rightskip}{0pt plus 5cm}Animation::Animation (
\begin{DoxyParamCaption}
\item[{int}]{aTime, }
\item[{int}]{interval, }
\item[{int}]{aNbStep}
\end{DoxyParamCaption}
)}}
\label{class_animation_abea4592acfb670e821d24ddcf2dd3593}


\subsection{Member Function Documentation}
\hypertarget{class_animation_a47d7e57125592e41adc24f1301adcb9d}{
\index{Animation@{Animation}!CheckTime@{CheckTime}}
\index{CheckTime@{CheckTime}!Animation@{Animation}}
\subsubsection[{CheckTime}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Animation::CheckTime (
\begin{DoxyParamCaption}
\item[{int}]{currentTime}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{class_animation_a47d7e57125592e41adc24f1301adcb9d}


Implemented in \hyperlink{class_sprite_sheet_a2e6dec1d6750fd772674cf03172852f8}{SpriteSheet}.

\hypertarget{class_animation_ae25a3ab12b719d73aced1e5e0d0112fa}{
\index{Animation@{Animation}!NextStep@{NextStep}}
\index{NextStep@{NextStep}!Animation@{Animation}}
\subsubsection[{NextStep}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Animation::NextStep (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{class_animation_ae25a3ab12b719d73aced1e5e0d0112fa}


Implemented in \hyperlink{class_sprite_sheet_a859528dc4ea946e16aa726f323b7238e}{SpriteSheet}.

\hypertarget{class_animation_aef4821c5eea9d55a0dd5e5a318891627}{
\index{Animation@{Animation}!Use@{Use}}
\index{Use@{Use}!Animation@{Animation}}
\subsubsection[{Use}]{\setlength{\rightskip}{0pt plus 5cm}void Animation::Use (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_animation_aef4821c5eea9d55a0dd5e5a318891627}


Reimplemented in \hyperlink{class_sprite_sheet_acae6d144d2ed04519233d38f2ce49a36}{SpriteSheet}.

\hypertarget{class_animation_a9365f435aa9928523d554049683f5e98}{
\index{Animation@{Animation}!Use@{Use}}
\index{Use@{Use}!Animation@{Animation}}
\subsubsection[{Use}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Animation::Use (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{class_animation_a9365f435aa9928523d554049683f5e98}


Implemented in \hyperlink{class_sprite_sheet_acae6d144d2ed04519233d38f2ce49a36}{SpriteSheet}.



\subsection{Member Data Documentation}
\hypertarget{class_animation_a5802e6215a1da69034bc349c14b09ea8}{
\index{Animation@{Animation}!currentStep@{currentStep}}
\index{currentStep@{currentStep}!Animation@{Animation}}
\subsubsection[{currentStep}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Animation::currentStep}}}
\label{class_animation_a5802e6215a1da69034bc349c14b09ea8}
Indice permettant de savoir à quelle texture du tableau de texture nous en sommes

Numéro de la \char`\"{}frame\char`\"{} actuelle \hypertarget{class_animation_a99961ee0ef7a9aec39aabd83c351bf22}{
\index{Animation@{Animation}!interval@{interval}}
\index{interval@{interval}!Animation@{Animation}}
\subsubsection[{interval}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Animation::interval}}}
\label{class_animation_a99961ee0ef7a9aec39aabd83c351bf22}
Intervalle de temps entre chaque changement de frame \hypertarget{class_animation_a7ea398809a1e88f76591c117ac155eec}{
\index{Animation@{Animation}!nbStep@{nbStep}}
\index{nbStep@{nbStep}!Animation@{Animation}}
\subsubsection[{nbStep}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Animation::nbStep}}}
\label{class_animation_a7ea398809a1e88f76591c117ac155eec}
Nombre d'étapes nécéssaire à un cycle de l'animation \hypertarget{class_animation_a20800650e6f0050c7cdeb97fa662ec10}{
\index{Animation@{Animation}!pause@{pause}}
\index{pause@{pause}!Animation@{Animation}}
\subsubsection[{pause}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Animation::pause}}}
\label{class_animation_a20800650e6f0050c7cdeb97fa662ec10}
Variable utilisé pour mettre en pause l'animation \hypertarget{class_animation_aebefbea7f829a8880e7749f9d9b83954}{
\index{Animation@{Animation}!sens@{sens}}
\index{sens@{sens}!Animation@{Animation}}
\subsubsection[{sens}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Animation::sens}}}
\label{class_animation_aebefbea7f829a8880e7749f9d9b83954}
Variable utilisé pour définir le sens de l'animation \hypertarget{class_animation_aa22549a55f3b2335ff206a85e22d7098}{
\index{Animation@{Animation}!stepCount@{stepCount}}
\index{stepCount@{stepCount}!Animation@{Animation}}
\subsubsection[{stepCount}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Animation::stepCount}}}
\label{class_animation_aa22549a55f3b2335ff206a85e22d7098}
Compte le nombre de frame qui se sont écoulé depuis le dernier changement d'image \hypertarget{class_animation_a46bcead8041d18d154c6caf634da0e53}{
\index{Animation@{Animation}!stepLength@{stepLength}}
\index{stepLength@{stepLength}!Animation@{Animation}}
\subsubsection[{stepLength}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Animation::stepLength}}}
\label{class_animation_a46bcead8041d18d154c6caf634da0e53}
Nombre de rafraichissement de l'image avant de changer d'étape d'animation \hypertarget{class_animation_a4c71d66784835bffc059ee0be5c88ed3}{
\index{Animation@{Animation}!textureIndexBuffer@{textureIndexBuffer}}
\index{textureIndexBuffer@{textureIndexBuffer}!Animation@{Animation}}
\subsubsection[{textureIndexBuffer}]{\setlength{\rightskip}{0pt plus 5cm}GLuint {\bf Animation::textureIndexBuffer}}}
\label{class_animation_a4c71d66784835bffc059ee0be5c88ed3}
Variable utilisé pour récupérer l'indice du buffer de coordonnées de textures \hypertarget{class_animation_a61b9ead944801e1ee3a11eddcf799d20}{
\index{Animation@{Animation}!textures@{textures}}
\index{textures@{textures}!Animation@{Animation}}
\subsubsection[{textures}]{\setlength{\rightskip}{0pt plus 5cm}std::vector$<${\bf Texture} $\ast$ $>$ {\bf Animation::textures}}}
\label{class_animation_a61b9ead944801e1ee3a11eddcf799d20}
Tableau enregistrant les images correspondant aux différentes étape de l'animation \hypertarget{class_animation_ad0ea719123939b31c1b8c46c9033cd64}{
\index{Animation@{Animation}!time@{time}}
\index{time@{time}!Animation@{Animation}}
\subsubsection[{time}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Animation::time}}}
\label{class_animation_ad0ea719123939b31c1b8c46c9033cd64}
Date (en seconde) du dernier rafraichissement de l'animation 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
sources/displayable/\hyperlink{displayable_2animation_8h}{animation.h}\item 
sources/old/\hyperlink{old_2animation_8h}{animation.h}\item 
sources/displayable/\hyperlink{displayable_2animation_8cpp}{animation.cpp}\item 
sources/old/\hyperlink{old_2animation_8cpp}{animation.cpp}\end{DoxyCompactItemize}
